package com.stylefeng.guns.modular.netcar.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.modular.netcar.model.VehiclePriceType;

import java.util.List;

/**
 * 
 * 车型价格 Mapper 接口 
 * @author sasazaixian
 * @Date 2018-11-05 17:13
 */
public interface VehiclePriceTypeMapper extends BaseMapper<VehiclePriceType> {
    /**
     * 删除车型价格
     * @param  vehiclePriceType
     * @return    
     */
    int deleteVehiclePriceType(VehiclePriceType vehiclePriceType)throws Exception;
    /**
     * 批量车型价格
     * @param ids 主键id数组
     * @return     
     */
    int deleteBatchVehiclePriceType(String[] ids)throws Exception;
    /**
     * 查询车型价格列表
     * @param vehiclePriceType 车型价格对象
     * @return      
     */
    List<VehiclePriceType> selectListVehiclePriceType(VehiclePriceType vehiclePriceType)throws Exception;
    /**
     * 分页查询车型价格列表
     * @param page  分页对象
     * @param vehiclePriceType 系统操作对象
     * @return
     * @Date 2018-10-02
     */
    List<VehiclePriceType> selectListVehiclePriceType(Page page, VehiclePriceType vehiclePriceType)throws Exception;


    /**
     * 同一个事务 互斥锁查询
     * @param vehiclePriceType 系统操作对象
     * @return     
     */
    List<VehiclePriceType> selectListVehiclePriceTypeForUpdate(VehiclePriceType vehiclePriceType)throws Exception;
    /**
     * 通过主键ID查询车型价格对象
     * @param id 主键id
     * @return    
     */
    VehiclePriceType findVehiclePriceTypeById(String id)throws Exception;

    /**
     * 插入车型价格
     * @param vehiclePriceType
     * @return   
     */
    int insertVehiclePriceType(VehiclePriceType vehiclePriceType) throws Exception ;
    /**
     * 更新车型价格
     * @param vehiclePriceType
     * @return     
     */
    int updateVehiclePriceType(VehiclePriceType vehiclePriceType) throws Exception ;


}
